home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8520 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.1 KB

  1. Path: newshost.lanl.gov!tanmoy
  2. From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
  3. Newsgroups: comp.lang.pl1,comp.lang.c
  4. Subject: Re: PL/I and C
  5. Date: 02 Mar 1996 19:46:46 GMT
  6. Organization: Los Alamos National Laboratory
  7. Message-ID: <TANMOY.96Mar2124646@qcd.lanl.gov>
  8. References: <4gh5ru$eng@goanna.cs.rmit.EDU.AU> <312CCEB2.4AB7@corp.dialog.com>
  9.     <4grhtv$s31@goanna.cs.rmit.EDU.AU> <4gt0tv$826@solutions.solon.com>
  10.     <4h11ub$njp@goanna.cs.rmit.EDU.AU> <TANMOY.96Feb28085159@qcd.lanl.gov>
  11.     <4h8vte$s76@goanna.cs.rmit.EDU.AU>
  12. NNTP-Posting-Host: qcd.lanl.gov
  13. Mime-Version: 1.0
  14. Content-Type: text
  15. In-reply-to: rav@goanna.cs.rmit.EDU.AU's message of 2 Mar 1996 19:12:30 +1100
  16.  
  17. In article <4h8vte$s76@goanna.cs.rmit.EDU.AU>
  18. rav@goanna.cs.rmit.EDU.AU (++           robin) writes:
  19.  
  20. r:     tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya) writes:
  21. r: 
  22. r:     >In article <4h11ub$njp@goanna.cs.rmit.EDU.AU>
  23. r:     >rav@goanna.cs.rmit.EDU.AU (++           robin) writes:
  24. r:     ><snip>
  25. r:     >r:     >strchr, strrchr, strspn, strcspn, strpbrk.
  26. r:     ><snip>
  27. r:     >r: As for the others (strrchr etc), they are not in all systems.
  28. r: 
  29. r:     >When one discusses languages, one ought to take the standard version
  30. r:     >of of the language, especially when the standard is not `brand
  31. r:     >new'.
  32. r: 
  33. r: ---there are several standards.  Which one do you mean?
  34.  
  35. The only standard that starts: This International Standard specifies the
  36. form and establishes the interpretation of programs written in the C
  37. programming language. When I am talking of C, do you expect me to use
  38. a Fortran standard? There is precisely one standard that defines C.
  39.  
  40. r: 
  41. r:     All of the functions mentioned are ANSI C functions, and saying
  42. r:     >that not all systems have them is like saying that not all fortran
  43. r:     >systems define the intrinsic `LEN'. Technically true,
  44. r: 
  45. r: ---so far as I know, all FORTRANs have LEN.
  46.  
  47. And what datatype did LEN act on in FORTRAN II?
  48.  
  49. <snip>
  50. r:     >How is sprintf an I/O function? It inputs its parameters and outputs
  51. r:     >into the memory pointed to by one of its parameters?
  52. r: 
  53. r: ---sprint prints to memory.  However, it does nothing like the
  54. r: functions that I mentioned for centering text, and trimming given
  55. r: characters from either or both ends of a string.
  56.  
  57. Is A = B an I/O function because it writes to the memory occupied by
  58. object A? I was not contesting that you have more `primitives' in PL1,
  59. some will argue that is good, others that it is bad. That has nothing
  60. to do with whether sprintf is an I/O function: a function that
  61. performs no I/O is not an I/O function in my book. Writing to memory
  62. has almost never been considered I/O (unless the write is to a memory
  63. mapped I/O device).
  64.  
  65. Cheers
  66. Tanmoy
  67. --
  68. tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
  69. Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
  70. Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
  71. <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
  72. internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
  73. fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
  74.